<script type='text/javascript' src='./js/swfobject.js'></script>
<div class="center">
<?php
$query = getVideos();
while($fetch = MySQL_Fetch_Array($query)) {
      $id_video = $fetch["ID"];
      $datum = $fetch["DATUM"];
      $nazev = $fetch["NAZEV"];
      $soubor = $fetch["SOUBOR"];
      $id_clanek = $fetch["ID_CLANEK"];

      echo "<div class='report-box'>";
        echo "<div class='header'>$datum (<a class='preloader' href='".redirect_str(PAGE_REPORT).add_par("id_clanku=".$id_clanek)."'>článek k videu</a>)</div>";  
        echo "<div class='body'>";
          echo "<p class='video-player' id='video$id_video'></p>";
          echo "<div class='center'>".$nazev."</div>";
        echo "</div>";
      echo "</div>";
      
      echo "<script type='text/javascript'>";
      echo "var s1 = new SWFObject('./swf/player.swf','player','400','300','9');";
      echo "s1.addParam('allowfullscreen','true');";
      echo "s1.addParam('allowscriptaccess','always');";
      echo "s1.addParam('flashvars','file=.".VIDEO_GALLERY_PATH.$soubor."');";
      echo "s1.write('video".$id_video."');";
      echo "</script>";
}
?>
</div>